<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="cw" uri="/widget-tags"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv=Content-Type content="text/html; charset=UTF-8">
		<title>状态栏</title>
		<!-- ExtJS library: all widgets -->
		<cw:base></cw:base>
		<script type="text/javascript">
			function loadFn(btn, statusBar){
				btn = Ext.getCmp(btn);
        statusBar = Ext.getCmp(statusBar);
        
        btn.disable();
        statusBar.showBusy();
        
        (function(){
            statusBar.clearStatus({useDefaults:true});
            btn.enable();
        }).defer(2000);
			}
		</script>
	</head>
	<body>
		<ul>
			<li>
				<b>状态栏，可包含普通按钮、菜单按钮、分隔符以及加载状态</b>
			</li>
		</ul>
		<br />
		<br />
		<cw:statusBar defaultText="默认状态" busyText="加载中..." id="statusbar">
			<cw:menuButton text="菜单" menu="menu1" onclick="">
				<cw:menu id="menu1">
					<cw:menuItem text="aaa">
						<cw:menuItem text="bbb" />
					</cw:menuItem>
					<cw:menuItem text="ccc" />
				</cw:menu>
			</cw:menuButton>
			<cw:itemSpilt></cw:itemSpilt>
			<cw:button text="按钮" onclick="alert(2)" />
			<cw:button text="加载" onclick="loadFn('loadButton', 'statusbar')" id="loadButton" />
		</cw:statusBar>
	</body>
	<cw:theme></cw:theme>
</html>
